import os, sys

destDir = os.path.join(".", "dists", "main", "main", "binary-i386")
dest = os.path.join(destDir, "Packages.gz")
if not os.path.exists(destDir):
	os.makedirs(destDir)

os.system("dpkg-scanpackages . /dev/null | gzip -9c > " + dest)
